{include file="user:header" /}
<link href="/static/user/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<script src="/static/user/js/plugins/sweetalert/sweetalert.min.js"></script>
<style>
.biaoge .price{color:red;}
</style>
</head>

<body class="gray-bg">
	
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row"> 
  <!--头部面包屑-->
  <div class="col-lg-12">
  
    <div class="ibox">
      <div class="ibox-content-p5 text-center">
        <div class="breadcrumb"> <i class="fa fa-home m-r5" style=" font-size: 16px;"></i>
          <li><a href="/user/index">首页</a></li>
          <li class="active">订单详情</li>
        </div>
      </div>
    </div>

    <!--表格-->
    <div class="ibox float-e-margins">
		<div class="ibox-title"><h3>订单详情</h3></div>
<div class="ibox-content">
	<form method="post" class="form-horizontal" action="{:url('pay')}" id="myform">
        <input type="hidden" name="oid" value="{$info['id']}">
		<div class="biaoge">
                <label class="col-sm-1 control-label">订单编号</label>
                <div class="col-sm-2">
                    <p class="form-control-static">{$info['order_sn']}</p>
                </div>
        </div>

        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">订单金额</label>
            <div class="col-sm-3">
                <p class="form-control-static">￥<span class="price">{$info['sum']}</span></p>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">应用名称</label>
            <div class="col-sm-3">
                <p class="form-control-static">{$info['gname']}</p>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">规格</label>
            <div class="col-sm-3">
                <p class="form-control-static">{$info['attr']}</p>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">支付状态</label>
            <div class="col-sm-3">
                <?php if($info['state_pay']){ ?>
                <p class="form-control-static">已支付 {$info['time_pay']|date="Y-m-d H:i:s"}</p>
                <?php }else{ ?>
                <p class="form-control-static">待支付</p>
                <a href="{:url('pay','oid='.$info['id'])}" class="btn btn-w-m btn-success submit_btn">立即支付</a>
                <?php } ?>
            </div>
        </div>

        <?php if($info['state_pay']){ ?>
        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">应用是否创建</label>
            <div class="col-sm-3">
                <?php if($info['state_create']){ ?>
                <p class="form-control-static">已创建 {$info['time_pay']|date="Y-m-d H:i:s"}</p>
                <?php }else{ ?>
                <p class="form-control-static">未创建</p>
                <a href="{:config('common.web_site_url')}/company/public/bycreate?sn={$info['order_sn']}" target="_blank" class="btn btn-w-m btn-success submit_btn">立即创建</a>
                <?php } ?>
            </div>
        </div>
        <?php } ?>

	
	
	</form>
		</div>
  </div>
</div>

{include file="user:footer" /}